const wxaBuildConfig = {
  DEFAULT: {
    uniquePage: ['homepage', 'userCenter'],
    pageStyle: {
      homepage: [
        {
          label: '默认',
          key: 'homepage-default'
        }
      ],
      userCenter: [
        {
          label: '默认',
          key: 'userCenter-default'
        }
      ],
      searchMallGoods: [
        {
          label: '默认',
          key: 'searchMallGoods-default'
        }
      ],
      activity: [
        {
          label: '默认',
          key: 'activity-default'
        }
      ],
      listNavigation: [
        {
          label: '默认',
          key: 'listNavigation-default'
        }
      ],
      article: [
        {
          label: '默认',
          key: 'article-default'
        }
      ],
      questionAnswer: [
        {
          label: '默认',
          key: 'questionAnswer-default'
        }
      ]
    },
    /* 使用page列表同字段 id name*/
    pageTree: [
      {
        id: 'homepage',
        name: '首页',
        unique: true,
        openPath: 'pages/index/main',
        openMode: 'navigateTo',
        children: []
      },
      {
        id: 'userCenter',
        name: '个人中心',
        unique: true,
        openPath: 'pages/mine/main',
        openMode: 'navigateTo',
        children: []
      },
      {
        id: 'activity',
        name: '专题活动页',
        unique: false,
        openPath: 'sp-mall/pages/active-page/index',
        openMode: 'navigateTo',
        children: []
      },
      // {
      //   id: 'article',
      //   name: '图文页',
      //   unique: false,
      //   openPath: 'mall/article',
      //   openMode: 'navigateTo',
      //   children: []
      // },
      // {
      //   id: 'listNavigation',
      //   name: '列表导航页',
      //   unique: false,
      //   openPath: 'mall/list-navigation',
      //   openMode: 'navigateTo',
      //   children: []
      // },
      {
        id: 'searchMallGoods',
        name: '商品搜索页',
        unique: false,
        openPath: 'sp-mall/pages/search/index',
        openMode: 'navigateTo',
        children: []
      }
      // {
      //   id: 'questionAnswer',
      //   name: 'Q&A页面',
      //   unique: false,
      //   openPath: 'mall/question-answer',
      //   openMode: 'navigateTo',
      //   children: []
      // }
    ],
    moduleName: {
      pingmianlunbo: {
        label: '平面轮播',
        maxSize: null,
        height: 60,
        params: {
          dump: {
            require: true,
            label: ''
          },
          pic: {
            require: true,
            label: '轮播图片',
            width: 300,
            height: 150
          }
        }
      },
      cengdielunbo: {
        label: '层叠轮播',
        maxSize: null,
        params: {
          titleType: {
            require: true,
            label: ''
          },
          bg: {
            require: true,
            label: '图片标题',
            width: 375,
            height: 65
          },
          title: {
            require: true,
            label: ''
          },
          subTitle: {
            require: true,
            label: ''
          },
          dump: {
            require: true,
            label: ''
          },
          pic: {
            require: true,
            label: '轮播图片',
            width: 300,
            height: 150
          },
          height: 60
        }
      },
      mofangdaohang: {
        label: '魔方导航',
        maxSize: null,
        params: {
          title: {
            require: true,
            label: ''
          },
          dump: {
            require: true,
            label: ''
          },
          pic: {
            require: true,
            label: '',
            width: 100,
            height: 100
          }
        }
      },
      kapiandaohang: {
        label: '卡片导航',
        maxSize: null,
        params: {
          dump: {
            require: true,
            label: ''
          },
          pic: {
            require: true,
            label: '',
            width: 350,
            height: 140
          }
        }
      },
      gongnengdaohang: {
        label: '功能导航',
        maxSize: null,
        params: {
          title: {
            require: true,
            label: '标题'
          },
          dump: {
            require: true,
            label: ''
          },
          pic: {
            require: true,
            label: '导航图标',
            width: 100,
            height: 100
          }
        }
      },
      liebiaodaohang: {
        label: '列表导航',
        maxSize: null,
        params: {
          title: {
            require: true,
            label: ''
          },
          subTitle: {
            require: true,
            label: ''
          },
          dump: {
            require: true,
            label: ''
          },
          pic: {
            require: true,
            label: '列表图片',
            width: 300,
            height: 150
          }
        }
      },
      biaoqiandaohang: {
        label: '标签导航',
        maxSize: null,
        params: {
          title: {
            require: true,
            label: ''
          },
          dump: {
            require: true,
            label: ''
          },
          pic: {
            require: true,
            label: '图片',
            width: 150,
            height: 150
          }
        }
      },
      liebiaochuchuang: {
        label: '列表橱窗',
        maxSize: 1,
        params: {
          titleType: {
            require: true,
            label: ''
          },
          bg: {
            require: true,
            label: '图片标题',
            width: 375,
            height: 28
          },
          title: {
            require: true,
            label: ''
          },
          subTitle: {
            require: true,
            label: ''
          }
        }
      },
      gundongchuchuang: {
        label: '滚动橱窗',
        maxSize: 1,
        params: {
          titleType: {
            require: true,
            label: ''
          },
          bg: {
            require: true,
            label: '图片标题',
            width: 375,
            height: 65
          },
          title: {
            require: true,
            label: ''
          },
          subTitle: {
            require: true,
            label: ''
          }
        }
      },
      shangpinzhuanlan: {
        label: '商品专栏',
        maxSize: null,
        params: {
          title: {
            require: true,
            label: ''
          },
          subTitle: {
            require: true,
            label: ''
          }
        }
      },
      tupian: {
        label: '图片',
        maxSize: 1,
        params: {
          dump: {
            require: true,
            label: ''
          },
          pic: {
            require: true,
            label: '',
            width: 300,
            height: 300
          }
        }
      },
      anniu: {
        label: '按钮',
        maxSize: 1,
        params: {
          title: {
            require: true,
            label: '按钮文字'
          },
          dump: {
            require: true,
            label: ''
          }
        }
      },
      qianzhianniu: {
        label: '前置按钮',
        maxSize: 1,
        params: {
          title: {
            require: true,
            label: '按钮文字'
          },
          dump: {
            require: true,
            label: ''
          }
        }
      },
      lianjieanniu: {
        label: '链接按钮',
        maxSize: 1,
        params: {
          title: {
            require: true,
            label: ''
          },
          dump: {
            require: true,
            label: ''
          }
        }
      },
      wenbenduan: {
        label: '文本段',
        maxSize: null,
        params: {
          title: {
            require: true,
            label: '标题'
          },
          content: {
            require: true,
            label: '内容'
          }
        }
      },
      kezhankaishuoming: {
        label: '可展开说明',
        maxSize: null,
        params: {
          title: {
            require: true,
            label: '标题'
          },
          content: {
            require: true,
            label: '内容'
          }
        }
      },
      sousuolan: {
        label: '搜索栏',
        maxSize: 1,
        params: {
          dump: {
            require: true,
            label: ''
          }
        }
      },
      guanzhugongzhonghao: {
        label: '关注公众号',
        maxSize: 1,
        params: {
        }
      },
      huiyuankaika: {
        label: '会员开卡',
        maxSize: 1,
        params: {
          pic: {
            require: true,
            label: '封面',
            width: 375,
            height: 120
          }
        }
      },
      chongzhi: {
        label: '充值',
        maxSize: 1,
        params: {
          pic: {
            require: true,
            label: '封面',
            width: 375,
            height: 120
          }
        }
      },
      chongzhijiangli: {
        label: '充值奖励',
        maxSize: 1,
        params: {
          pic: {
            require: true,
            label: '封面',
            width: 375,
            height: 120
          }
        }
      },
      // jifenduihuan: {
      //   label: '积分兑换',
      //   maxSize: null,
      //   params: {
      //     dump: {
      //       require: true,
      //       label: ''
      //     }
      //   }
      // },
      yingxiaohuodong: {
        label: '营销活动',
        maxSize: 1,
        params: {

				}
			},
			lingquan: {
				label: '领券',
				maxSize: 1,
				params: {
					title: {
						require: true,
						label: ''
					},
					subTitle: {
						require: true,
						label: ''
					},
					pic: {
						require: true,
						label: '封面',
						width: 500,
						height: 150
					}
				}
			},
			lingquanzhuanlan: {
				label: '领券专栏',
				maxSize: null,
				params: {
					title: {
						require: true,
						label: ''
					},
					subTitle: {
						require: true,
						label: ''
					}
				}
			},
			shangpinfenlei: {
				label: '店铺分类',
				params: {}
			},
			dianpujianjie: {
				label: '店铺简介',
				params: {}
			},
      gerenxinxi: {
        label: '个人信息',
        params: {}
      },
      kaikaquanyi: {
        label: '开卡权益',
        params: {
          guideText: '开通立得高额现金券'
        }
      },
      changyonggongneng: {
        label: '常用功能',
        params: {
        }
      },
      gundonggonggao: {
        label: '滚动公告',
        params: {
        }
      },
    },
    dumpType: {
      EMPTY: '无',
      INSIDE: '站内链接',
      FEATURE: '手机功能',
      WXAPP: '小程序',
      URL: '公众号推文'
    },
    module: [
      {
        group: '轮播模块',
        components: [
          {
            key: 'pingmianlunbo',
            bizType: 'DUMP',
            label: '平面轮播',
            scene: 'unlimited',
            temp: [
              'homepage-default',
              'userCenter-default',
              'activity-default'
            ]
          },
          {
            key: 'cengdielunbo',
            bizType: 'DUMP',
            label: '层叠轮播',
            scene: 'unlimited',
            temp: [
              'homepage-default'
            ]
          }
        ]
      },
      {
        group: '导航模块',
        components: [
          {
            key: 'mofangdaohang',
            bizType: 'DUMP',
            label: '魔方导航',
            scene: 'unlimited',
            temp: [
              'homepage-default',
              'activity-default'
            ]
          },
          {
            key: 'kapiandaohang',
            bizType: 'DUMP',
            label: '卡片导航',
            scene: 'unlimited',
            temp: [
              'homepage-default',
              'activity-default'
            ]
          },
          // {
          //   key: 'gongnengdaohang',
          //   bizType: 'DUMP',
          //   label: '功能导航',
          //   scene: 'unlimited',
          //   temp: [
          //     'userCenter-default',
          //     'activity-default'
          //   ]
          // },
          // {
          //   key: 'liebiaodaohang',
          //   bizType: 'DUMP',
          //   label: '列表导航',
          //   scene: 'unlimited',
          //   temp: [
          //     'listNavigation-default',
          //     'activity-default'
          //   ]
          // },
          {
            key: 'biaoqiandaohang',
            bizType: 'DUMP',
            label: '标签导航',
            scene: 'unlimited',
            temp: [
              'searchMallGoods-default'
            ]
          }
        ]
      },
      {
        group: '商品模块',
        components: [
          {
            key: 'liebiaochuchuang',
            bizType: 'MALL_SHELF',
            label: '列表橱窗',
            scene: 'mall',
            temp: [
              'homepage-default',
              'activity-default'
            ]
          },
          {
            key: 'gundongchuchuang',
            bizType: 'MALL_SHELF',
            label: '滚动橱窗',
            scene: 'mall',
            temp: [
              'homepage-default',
              'activity-default'
            ]
          },
          {
            key: 'shangpinzhuanlan',
            bizType: 'MALL_SHELF',
            label: '商品专栏',
            scene: 'mall',
            temp: [
              'homepage-default',
              'activity-default'
            ]
          }
        ]
      },
      {
        group: '预约模块',
        components: [
          {
            key: 'liebiaochuchuang',
            bizType: 'RESERVATION_SHELF',
            label: '列表橱窗',
            scene: 'mall',
            temp: [
              'homepage-default',
              'activity-default'
            ]
          },
          {
            key: 'gundongchuchuang',
            bizType: 'RESERVATION_SHELF',
            label: '滚动橱窗',
            scene: 'mall',
            temp: [
              'homepage-default',
              'activity-default'
            ]
          },
          {
            key: 'shangpinzhuanlan',
            bizType: 'RESERVATION_SHELF',
            label: '预约专栏',
            scene: 'mall',
            temp: [
              'homepage-default',
              'activity-default'
            ]
          }
        ]
      },
      {
        group: '会员模块',
        components: [
          {
            key: 'huiyuankaika',
            bizType: 'OPEN_CARD',
            label: '会员开卡',
            scene: 'unlimited',
            temp: [
              'homepage-default',
              'activity-default',
            ]
          },
          {
            key: 'chongzhi',
            bizType: 'RECHARGE',
            label: '充值',
            scene: 'unlimited',
            temp: [
              'homepage-default',
              'activity-default',
            ]
          },
          {
            key: 'chongzhijiangli',
            bizType: 'RECHARGE',
            label: '充值奖励',
            scene: 'unlimited',
            temp: [
              'homepage-default',
              'activity-default',
            ]
          },
          {
            key: 'gerenxinxi',
            bizType: 'CHECKBOX',
            label: '个人信息',
            scene: 'unlimited',
            single: true,
            temp: [
              'userCenter-default'
            ]
          },
          {
            key: 'kaikaquanyi',
            bizType: 'CARDBOON',
            label: '开卡权益',
            scene: 'unlimited',
            single: true,
            temp: [
              'userCenter-default'
            ]
          },
          {
            key: 'changyonggongneng',
            bizType: 'OFTEN',
            label: '常用功能',
            scene: 'unlimited',
            temp: [
              'userCenter-default'
            ]
          }
          // {
          //   key: 'jifenduihuan',
          //   bizType: 'DUMP',
          //   label: '积分兑换',
          //   scene: 'unlimited',
          //   temp: [
          //     'homepage-default',
          //     'activity-default'
          //   ]
          // }
        ]
      },
      {
        group: '卡券营销',
        components: [
          {
            key: 'yingxiaohuodong',
            bizType: 'MARKETING',
            label: '营销活动',
            scene: 'unlimited',
            temp: [
              'homepage-default',
              'activity-default',
            ]
          },
          {
            key: 'lingquan',
            bizType: 'COUPON',
            label: '领券',
            scene: 'unlimited',
            temp: [
              'homepage-default',
              'activity-default'
            ]
          },
          {
            key: 'lingquanzhuanlan',
            bizType: 'COUPON',
            label: '领券专栏',
            scene: 'unlimited',
            temp: [
              'homepage-default',
              'activity-default'
            ]
          }]
      },
      // {
      //   group: '应用模块',
      //   components: [
      //     {
      //       key: 'yuding',
      //       bizType: 'DUMP',
      //       label: '预订',
      //       scene: 'unlimited',
      //       temp: [
      //         'homepage-default'
      //       ]
      //     }]
      // },
      {
        group: '基础模块',
        components: [
          {
            key: 'tupian',
            bizType: 'DUMP',
            label: '图片',
            scene: 'unlimited',
            temp: [
              'homepage-default',
              'activity-default'
            ]
          },
          {
            key: 'anniu',
            bizType: 'DUMP',
            label: '按钮',
            scene: 'unlimited',
            temp: [
              'homepage-default',
            ]
          },
          {
            key: 'qianzhianniu',
            bizType: 'DUMP',
            label: '前置按钮',
            scene: 'unlimited',
            temp: [
              'searchMallGoods-default',
              'activity-default',
              'listNavigation-default',
              'article-default',
              'questionAnswer-default'
            ]
          },
          {
            key: 'lianjieanniu',
            bizType: 'DUMP',
            label: '链接按钮',
            scene: 'unlimited',
            temp: [
              'article-default'
            ]
          },
          {
            key: 'wenbenduan',
            bizType: 'TEXT',
            label: '文本段',
            scene: 'unlimited',
            temp: [
              'article-default'
            ]
          },
          {
            key: 'kezhankaishuoming',
            bizType: 'TEXT',
            label: '可展开说明',
            scene: 'unlimited',
            temp: [
              'questionAnswer-default'
            ]
          },
          {
            key: 'sousuolan',
            bizType: 'DUMP',
            label: '搜索栏',
            scene: 'unlimited',
            temp: [
              'homepage-default',
              'activity-default'
            ]
          },
          {
            key: 'guanzhugongzhonghao',
            bizType: 'RADIOWIN',
            label: '关注公众号',
            scene: 'unlimited',
            single: true,
            temp: [
              'homepage-default',
              'userCenter-default'
            ]
          },
          {
            key: 'gundonggonggao',
            bizType: 'AFFICHE',
            label: '滚动公告',
            scene: 'unlimited',
            temp: [
              'homepage-default',
              'userCenter-default'
            ]
          }
        ]
      },
      {
        group: '店铺模块',
        components: [
          {
            key: 'shangpinfenlei',
            bizType: 'DIANPU',
            label: '商品分类',
            scene: 'unlimited',
            storeMode: 'PRO',
            temp: [
              'homepage-default'
            ]
          },
          {
            key: 'dianpujianjie',
            bizType: 'DIANPU',
            label: '店铺简介',
            scene: 'unlimited',
            storeMode: 'ABOUT',
            temp: [
              'homepage-default'
            ]
          }
        ]
      }
    ],
    insideLinkPageType: [
      {
        key: 'MYPAGE',
        label: '我的页面'
      },
      {
        key: 'SYSTEMPAGE',
        label: '系统页面'
      },
      {
        key: 'GOODSDETAIL',
        label: '商品详情'
      },
      {
        key: 'COUPON',
        label: '卡券'
      },
      // {
      //   key: 'SHOPMALL',
      //   label: '店铺(到家)'
      // },
      {
        key: 'POINTGOODSDETAIL',
        label: '积分商品'
      }
    ],
    insideLinkSystemPage: [{
      key: 'homepage',
      label: '首页',
      openPath: 'pages/index/main',
      openMode: 'navigateTo'
    },
    {
      key: 'userCenter',
      label: '个人中心',
      openPath: 'pages/mine/main',
      openMode: 'navigateTo'
    }, {
      key: 'shopCart',
      label: '购物车',
      openPath: 'sp-mall/pages/shop-cart/index',
      openMode: 'navigateTo'
    }
    ]
  }
}

export default wxaBuildConfig
